<form [formGroup]="groupEditUserForm">
  <nz-form-item>
    <nz-form-label nzRequired nzFor="groupName">小组名称</nz-form-label>
    <nz-form-control>
      <input nz-input formControlName="groupName" id="groupName" (blur)='isGroupNameRepeat()' />
      <nz-form-explain
        *ngIf="!(groupEditUserForm.get('groupName').valid || groupEditUserForm.get('groupName').untouched)">
        <span class="text-danger" *ngIf="groupEditUserForm.get('groupName').hasError('required')">
          带*项不能为空!
        </span>
      </nz-form-explain>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-label nzRequired nzFor="autoScaLicense">小组许可设置</nz-form-label>
    <nz-form-control>
      <nz-radio-group [(ngModel)]="radioValue" formControlName="autoScaLicense">
        <label nz-radio nzValue="0">用户手动给应用分配许可</label>
        <label nz-radio nzValue="1">有新应用创建时自动分配许可</label>
      </nz-radio-group>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-control class="modal-footer">
      <button nz-button nzType="primary" class="modal-footer-btn"
        (click)="changeGroupUserModal()">确&nbsp;&nbsp;&nbsp;&nbsp;定</button>
      <button nz-button nzType="default" class="modal-footer-btn" nzGhost
        (click)="destroyModal()">取&nbsp;&nbsp;&nbsp;&nbsp;消</button>
    </nz-form-control>
  </nz-form-item>
</form>